package com.fancy.learncenter.bean;

import android.os.Parcel;
import android.os.Parcelable;

import com.fancy.learncenter.common.JumpIntentKey;

/**
 * Created by shiweiwei on 2017/12/16.
 */

public class CartoonTextsBean implements Parcelable {
    /**
     * id : 941883856563408900
     * type : 0
     * value : 468
     */

    private long id;
    private int type;
    private String value;
    private int isHidden; //是否隐藏 0 显示 1 隐藏
    private JumpIntentKey.OPTION_STATUS status; // 0 默认状态 1 选中状态 2 正确 3 错误

    protected CartoonTextsBean(Parcel in) {
        id = in.readLong();
        type = in.readInt();
        value = in.readString();
        status = (JumpIntentKey.OPTION_STATUS) in.readSerializable();
        isHidden = in.readInt();
    }

    public CartoonTextsBean() {
    }

    public int isHidden() {
        return isHidden;
    }

    public void setHidden(int hidden) {
        isHidden = hidden;
    }

    public JumpIntentKey.OPTION_STATUS getStatus() {
        return status;
    }

    public void setStatus(JumpIntentKey.OPTION_STATUS status) {
        this.status = status;
    }

    public static final Creator<CartoonTextsBean> CREATOR = new Creator<CartoonTextsBean>() {
        @Override
        public CartoonTextsBean createFromParcel(Parcel in) {
            return new CartoonTextsBean(in);
        }

        @Override
        public CartoonTextsBean[] newArray(int size) {
            return new CartoonTextsBean[size];
        }
    };

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeLong(id);
        dest.writeInt(type);
        dest.writeString(value);
        dest.writeSerializable(status);
        dest.writeInt(isHidden);
    }
}